<?php
include('../../inc/global.inc');
include("../islogin.php");
$urls=$_SERVER['HTTP_REFERER'];
?>
<?php 
$id_del=$_POST["id_del"];
if($id_del!=""){ 
$del_num=count($id_del); 
for($i=0;$i<$del_num;$i++){ 
  mysql_query("delete from news where id='$id_del[$i]'");
} 

  echo "<script>location='".$urls."';</script>"; 
}else{ 
  echo "<script>alert('请选择您要删除项目');history.back();</script>";
} 
?> 
